home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_09
/
barbu2
/
showdata.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-10
|
1KB
|
45 lines
//////////////////////////////////////////////////////
// SHOWDATA, an ASSOCMEM with a face
//////////////////////////////////////////////////////
#if !defined(SHOWDATA_HPP)
#define SHOWDATA_HPP
#if !defined(RC_INVOKED) // no Windows RC compiler
#include "ASSOCMEM.HPP"
#include <windows.h>
class MODALDLG;
class SHOWDATA : public ASSOCMEM {
public:
enum RET { OK, CANCEL,
MEMORYOUT, INTERNALERR,
DESCNOTFOUND, SYNTAXERR };
SHOWDATA(const char szStoreFile[],
const char szStoreSect[] = 0
);
virtual ~SHOWDATA();
// store / retrieve, ASSOCMEM overloads:
virtual const char* get(const char szSym[],
STR& Val) const;
virtual void set(const char szSym[],
const char szValue[]);
virtual int get(const char szSym[],
int nDefault = 0) const;
virtual void set(const char szSym[], int nVal);
// MS-Windows presentation layer:
RET modalDlg(HWND hWndParent, HINSTANCE hInst,
const char szDescrFile[],
const char szDescrSect[],
const char szResourceType[] = 0);
private:
const STR _name, _sect;
MODALDLG *_dlg;
SHOWDATA();
SHOWDATA(const SHOWDATA&);
SHOWDATA& operator=(const SHOWDATA&);
};
#endif
#endif